setycoreinterface

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > SetYCoreInterface

## SetYCoreInterface

The SetYCoreInterface function will set the ClientProtector internal reference to the YCore interface (AKA: IronWrapping interface). The ClientProtector uses this interface pointer to directly communicate with the IronWrapping system in your protected application. You must call this function before you call StartUp in your User Defined License Model. Call this function is you are creating a User Defined License Model. Do not call this function in any other circumstances or likely your program will crash.

###### Syntax

HRESULT SetYCoreInterface ( void * AYCoreInterface ) ;

###### Parameters

AYCoreInterface

[IN] This is (a pointer to) a xxxxxxx

###### Remarks

The pointer you pass to SetYCoreInterface must be the same pointer received by your entry point function in your User Defined License Model ”YShieldEntry”. When the IronWrapping system calls YShieldEntry, it passes a pointer to its own interface as a parameter (see documentation on YShieldEntry for more information). This pointer must then be used to call SetYCoreInterface on the ClientProtector

Although the YCoreInterface parameter in this function is formally defined as a void *, the actual type is a IAppSrv *. This type is defined in the header file AppSrvIntf.pas or AppSrvIntf.h included in the SDK.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"